﻿<Window x:Class="PowerSong.UserInterface.EditStyleElementWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Edit Style Element" Height="520" Width="700" WindowStartupLocation="CenterScreen"
        Icon="/PowerSong;component/Icons/BlackIcon.ico" xmlns:my="clr-namespace:PowerSong.UserInterface">
    <Grid>
        <Grid Name="PreviewGrid" Background="Black" Margin="12,12,292,187"></Grid>
        <Grid Height="110" Margin="12,0,12,41" VerticalAlignment="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <TextBlock HorizontalAlignment="Left" Margin="6,6,0,0" Text="Fade in style:" VerticalAlignment="Top" />
            <ComboBox Height="23" Margin="6,28,13,6" Name="FadeInStyleComboBox" VerticalAlignment="Top" DisplayMemberPath="Value" SelectedValuePath="Key" />
            <TextBlock HorizontalAlignment="Left" Margin="6,57,0,0" Text="Duration:" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="6,79,0,0" Name="FadeInDurationTextBox" VerticalAlignment="Top" Width="61" />
            <TextBlock HorizontalAlignment="Left" Margin="73,82,0,0" Text="milliseconds" VerticalAlignment="Top" />
            <TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="6,6,0,0" Text="Fade out style:" VerticalAlignment="Top" />
            <ComboBox Grid.Column="1" Height="23" Margin="6,28,19,0" Name="FadeOutStyleComboBox" VerticalAlignment="Top" DisplayMemberPath="Value" SelectedValuePath="Key" />
            <TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="6,57,0,0" Text="Duration:" VerticalAlignment="Top" />
            <TextBox Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="6,79,0,0" Name="FadeOutDurationTextBox" VerticalAlignment="Top" Width="61" />
            <TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="73,82,0,0" Text="milliseconds" VerticalAlignment="Top" />
            <TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="6,6,0,0" Text="Cross fade style:" VerticalAlignment="Top" />
            <ComboBox Grid.Column="2" Height="23" Margin="6,28,19,0" Name="CrossFadeStyleComboBox" VerticalAlignment="Top" DisplayMemberPath="Value" SelectedValuePath="Key" />
            <TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="6,57,0,0" Text="Duration:" VerticalAlignment="Top" />
            <TextBox Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="6,79,0,0" Name="CrossFadeDurationTextBox" VerticalAlignment="Top" Width="61" />
            <TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="73,82,0,0" Text="milliseconds" VerticalAlignment="Top" />
        </Grid>
        <TextBlock HorizontalAlignment="Right" Margin="0,229,239,0" Text="Visibility:" VerticalAlignment="Top" />
        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,226,12,0" Name="VisibilityComboBox" VerticalAlignment="Top" Width="185" DisplayMemberPath="Value" SelectedValuePath="Key" />
        <TextBlock HorizontalAlignment="Right" Margin="0,200,203,0" Text="Text Alignment:" VerticalAlignment="Top" />
        <TextBlock HorizontalAlignment="Right" Margin="0,130,227,0" Text="Font effect:" VerticalAlignment="Top" />
        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,197,12,0" Name="AlignmentComboBox" VerticalAlignment="Top" Width="185" DisplayMemberPath="Value" SelectedValuePath="Key" />
        <my:ColorControl Header="Change Font Colour..." Height="23" HorizontalAlignment="Right" Margin="0,85,126,0" x:Name="ChangeFontColourButton" VerticalAlignment="Top" Width="160" />
        <my:ColorControl Header="Colour..." HorizontalAlignment="Right" Margin="0,152,12,0" x:Name="ChangeEffectColourButton" VerticalAlignment="Top" Width="94" />
        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,152,112,0" Name="EffectComboBox" VerticalAlignment="Top" Width="174" DisplayMemberPath="Value" SelectedValuePath="Key"  />
        <Button Content="_Cancel" Height="23" HorizontalAlignment="Right" IsCancel="True" Margin="0,0,12,12" Name="CancelButton" VerticalAlignment="Bottom" Width="75" Click="CancelButton_Click" />
        <Button Content="_OK" Height="23" HorizontalAlignment="Right" IsDefault="True" Margin="0,0,93,12" Name="OKButton" VerticalAlignment="Bottom" Width="75" Click="OKButton_Click" />
        <my:FontControl HorizontalAlignment="Right" Margin="0,34,12,0" x:Name="Font" VerticalAlignment="Top" Width="274" />
        <TextBlock HorizontalAlignment="Right" Margin="0,12,230,0" Text="Main Font:" VerticalAlignment="Top" />
        <TextBlock HorizontalAlignment="Right" Margin="0,281,240,0" Text="Margins:" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="444,278,0,0" Name="MarginLeftTextBox" VerticalAlignment="Top" Width="50" TextChanged="MarginTextBoxChanged" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="500,278,0,0" Name="MarginTopTextBox" VerticalAlignment="Top" Width="50" TextChanged="MarginTextBoxChanged" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="560,278,0,0" Name="MarginRightTextBox" VerticalAlignment="Top" Width="50" TextChanged="MarginTextBoxChanged" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="616,278,0,0" Name="MarginBottomTextBox" VerticalAlignment="Top" Width="50" TextChanged="MarginTextBoxChanged" />
        <TextBlock HorizontalAlignment="Right" Margin="0,256,184,0" Text="Left" VerticalAlignment="Top" Width="50" TextAlignment="Center" />
        <TextBlock HorizontalAlignment="Right" Margin="0,256,128,0" Text="Top" VerticalAlignment="Top" Width="50" TextAlignment="Center" />
        <TextBlock HorizontalAlignment="Right" Margin="0,256,68,0" Text="Right" VerticalAlignment="Top" Width="50" TextAlignment="Center" />
        <TextBlock HorizontalAlignment="Right" Margin="0,256,12,0" Text="Bottom" VerticalAlignment="Top" Width="50" TextAlignment="Center" />
    </Grid>
</Window>
